package com.tree.TreeBaseOnArray;

public class TreeBaseOnArrayTest {	
	public static void main(String[] args) {
		TreeBaseOnArray tree=new TreeBaseOnArray(15,"A");
		tree.addNode("A", "B");
		tree.addNode("A", "C");
		tree.addNode("A", "D");
		tree.addNode("B","E");
		tree.addNode("D", "F");
		tree.addNode("D", "G");
		tree.addNode("E", "H");
		tree.addNode("E", "I");
		tree.addNode("E", "J");
		tree.addNode("G", "K");
		tree.addNode("I","L");
		tree.addNode("K", "M");
		tree.addNode("M", "N");
		System.out.println(tree.treeDepth());
	}
}
